package blog.service.impl;

import blog.entity.User;
import blog.entity.VideoSrc;
import blog.mapper.UserMapper;
import blog.mapper.VideoSrcMapper;
import blog.service.UserService;
import blog.service.VideoSrcService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class VideoSrcServiceImpl extends ServiceImpl<VideoSrcMapper, VideoSrc> implements VideoSrcService {


    @Override
    public List<VideoSrc> listSrcByVideoId(Integer id) {
        LambdaQueryWrapper<VideoSrc> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(VideoSrc::getVid, id);
        return this.list(wrapper);


    }
}